// 定义首页需要的接口函数
import request from '@/utils/request'

// 热门品牌
export const findBrand = (limit = 6) => {
  return request('/home/brand', 'get', { limit: limit })
}

// 轮播图
export const findBanner = (distributionSite) => {
  return request('/home/banner', 'get', { distributionSite: distributionSite })
}

// 新鲜好物
export const findNew = (limit = 4) => {
  return request('home/new', 'get', { limit: limit })
}

// 人气推荐
export const findHot = (limit = 4) => {
  return request('home/hot', 'get', { limit: limit })
}
// 产品区块
export const findGoods = () => {
  return request('/home/goods', 'get')
}
// 最新专题
export const findSpecial = (limit) => {
  return request('/home/special', 'get', { limit: limit })
}
